package view.other
{
	/**
	 *上海市城墙
	 *@author CrazyChen 
	 *2013-3-31
	 */	
	import flash.display.Bitmap;
	import flash.display.Sprite;
	import flash.geom.Point;
	
	import manager.AssetManage;
	import manager.MapConfig;
	
	public class ShanghaiWall extends Sprite
	{
		public function ShanghaiWall()
		{
			super();
			var bm:Bitmap = new AssetManage.wall();
			this.addChild(bm);
			bm.x = -bm.width/2;
			bm.y = -bm.height/2;
			this.mouseChildren = false;
			this.mouseEnabled = false;
		}
		
		public function refreshView():void{
			var point:Point = MapConfig.getInstance().line[MapConfig.getInstance().line.length - 1];
			this.x = point.x-30;
			this.y = point.y-30;
		}
	}
}